﻿@model Web.Models.MovieRanksViewModel

@{
    ViewBag.Title = "Ranks";
    Layout = "~/Views/Shared/MainSiteLayout.cshtml";
}

<div class="opaqueContent">
    <h1>Rankingi</h1>


@if (Model != null)
{
    if (Model.TopRated != null)
    {
        <h2>Najwyżej oceniane</h2>
        @Html.Partial("_MoviesPresentation", Model.TopRated)
    }
    if (Model.LastAdded != null)
    {
        <h2>Ostatnio dodane</h2>
        @Html.Partial("_MoviesPresentation", Model.LastAdded)
    }
    if (Model.LastProduced != null)
    {
        <h2>Ostatnio wyprodukowane</h2>
        @Html.Partial("_MoviesPresentation", Model.LastProduced)
    }
    if (Model.FrequentlyHired != null)
    {
        <h2>Najczęściej wypożyczane</h2>
        @Html.Partial("_MoviesPresentation", Model.FrequentlyHired)
    }
    if (Model.FrequentlyCommented != null)
    {
        <h2>Najczęściej komentowane</h2>
        @Html.Partial("_MoviesPresentation", Model.FrequentlyCommented)
    }   
}

</div>